<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">{:lang('WEB_SITE_INFOS')}</a></li>
        <!--<li><a href="#B" data-toggle="tab">{:lang('SEO_SETTING')}</a></li>-->
        <!--<li><a href="#C" data-toggle="tab">{:lang('URL_SETTING')}</a></li>-->
        <!--<li><a href="#E" data-toggle="tab">{:lang('COMMENT_SETTING')}</a></li>-->
        <!--<li><a href="#F" data-toggle="tab">用户注册设置</a></li>-->
        <!--<li><a href="#G" data-toggle="tab">CDN设置</a></li>-->
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/sitePost')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">

                        <!--
                        <div class="form-group">
                            <label for="input-html_cache_on" class="col-sm-2 control-label">{:lang('HTML_CACHE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <php>$html_cache_on_checked=empty($html_cache_on)?'':'checked';</php>
                                <div class="checkbox">
                                    <label><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" id="input-html_cache_on" {$html_cache_on_checked}></label>
                                </div>
                            </div>
                        </div>
                        -->
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">公司名称</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_name" name="options[site_name]"
                                       value="{$site_info.site_name|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">公司地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_address" name="options[site_address]"
                                       value="{$site_info.site_address|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">{:lang('WEBSITE_ICP')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_icp" name="options[site_icp]"
                                       value="{$site_info.site_icp|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">客服热线</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_gwa" name="options[site_gwa]"
                                       value="{$site_info.site_gwa|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">营业时间</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_admin_email"
                                       name="options[site_admin_email]"
                                       value="{$site_info.site_admin_email|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">logo</label>
                            <div class="col-md-6 col-sm-10">
                                <if condition="$site_info['site_logo'] eq ''">
                                    <input type="hidden" name="options[site_logo]" id="thumbnail" value="">
                                    <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
                                        <img src="/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png"
                                             id="thumbnail-preview"
                                             width="135" style="cursor: pointer"/>
                                    </a>
                                    <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
                                    <else/>
                                    <input type="hidden" name="options[site_logo]" id="thumb" value="{$site_info.site_logo|default=''}">
                                    <a href="javascript:uploadOneImage('图片上传','#thumb');">
                                        <if condition="empty($site_info.site_logo)">
                                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                                 id="thumb-preview" width="135" style="cursor: hand"/>
                                            <else/>
                                            <img src="{:cmf_get_image_preview_url($site_info.site_logo)}" id="thumb-preview"
                                                 width="135" style="cursor: hand"/>
                                        </if>
                                    </a>
                                    <input type="button" class="btn btn-sm"
                                           onclick="$('#thumb-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;"
                                           value="取消图片">
                                </if>
                            </div>
                        </div>
                    <div class="form-group">
                        <label for="input-site_admin_email" class="col-sm-2 control-label">二维码</label>
                        <div class="col-md-6 col-sm-10">
                            <if condition="$site_info['site_erweima'] eq ''">
                                <input type="hidden" name="options[site_erweima]" id="thumbnail1" value="">
                                <a href="javascript:uploadOneImage('图片上传','#thumbnail1');">
                                    <img src="/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png"
                                         id="thumbnail1-preview"
                                         width="135" style="cursor: pointer"/>
                                </a>
                                <input type="button" class="btn btn-sm btn-cancel-thumbnail1" value="取消图片">
                                <else/>
                                <input type="hidden" name="options[site_erweima]" id="thumb1" value="{$site_info.site_erweima|default=''}">
                                <a href="javascript:uploadOneImage('图片上传','#thumb');">
                                    <if condition="empty($site_info.site_erweima)">
                                        <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                             id="thumb1-preview" width="135" style="cursor: hand"/>
                                        <else/>
                                        <img src="{:cmf_get_image_preview_url($site_info.site_erweima)}" id="thumb1-preview"
                                             width="135" style="cursor: hand"/>
                                    </if>
                                </a>
                                <input type="button" class="btn btn-sm"
                                       onclick="$('#thumb1-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;"
                                       value="取消图片">
                            </if>
                        </div>
                    </div>
                        <!--<div class="form-group">-->
                            <!--<label for="input-site_analytics" class="col-sm-2 control-label">{:lang('WEBSITE_STATISTICAL_CODE')}</label>-->
                            <!--<div class="col-md-6 col-sm-10">-->
                                <!--<textarea class="form-control" id="input-site_analytics" name="options[site_analytics]">{$site_info.site_analytics|default=''}</textarea>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="form-group">-->
                        <!--<label for="input-site_copyright" class="col-sm-2 control-label">{:lang('WEBSITE_COPYRIGHT_INFOMATION')}</label>-->
                        <!--<div class="col-md-6 col-sm-10">-->
                        <!--<input type="text" class="form-control" id="input-site_copyright" name="options[site_copyright]" value="{$site_info.site_copyright|default=''}">-->
                        <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
